Skip to content

fix(progress-circle): render determinate and indeterminate across all supported browsers - #375

Merged
jelbourn merged 1 commit into
angular:masterfrom
josephperrott:master
May 17, 2016
Merged

jelbourn merged 1 commit into
angular:masterfrom
josephperrott:master

Conversation

@josephperrott

Copy link
Copy Markdown
Member

For #295

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Apr 28, 2016
/* Animation Durations */
$md-progress-circle-duration : 5.25s !default;
$md-progress-circle-value-change-duration : $md-progress-circle-duration * 0.25 !default;
$md-progress-circle-duration : 5332ms !default;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add any info on where this value comes from?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted back

@jelbourn

jelbourn commented May 4, 2016

Copy link
Copy Markdown
Contributor

@joeyperson Now needs rebasing on my mega change #384. Let me know if you need any help with that (next week, of course).

@josephperrott

Copy link
Copy Markdown
Member Author

Rebased.

// total circumference.
private _renderCircle(animateFrom: number, animateTo: number,
ease: (currentTime: number, startValue: number,
changeInValue: number, duration: number) => number,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should be able to alias this type so that it's a little more readable here:

type EasingFn = (currentTime: number, startValue: number, changeInValue: number, duration: number) => number

(see the Dir directive for an example)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes PR author has agreed to Google's Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants